<html>
<head>
<title>Log In: Property Insurance Expert Acegi</title>
<style type="text/css">
	body { font-family: 'Verdana'; font-size:11pt; font-weight: bold; color: 'teal'; }
</style>

<script language="JavaScript">
	function validate() {
		var username=myform.j_username.value;
		var password=myform.j_password.value;
		if(username==null || trim(username)=="") {
			alert("Username is empty");
			return false;
		}else if(password==null || password=="") {
			alert("Password is empty");
			return false;
		}
	}
</script>
</head>

<%
	String message="";
	if(request.getParameter("login_error") != null)
		message="Invalid User Name/Password";
	else if(request.getParameter("logged_out")!=null)
		message="Successfully Logged Out";
%>

<body onload="myform.j_username.focus();">
	<form action="j_acegi_security_check" method="POST" name="myform" onsubmit="return validate()">
		<table align="center" cellpadding="5" cellspacing="0" border="0">
		<tr>
			<td><b>User Name</b></td>
			<td><input type='text' name="j_username" size="28"></td>
		</tr>
		<tr>
			<td><b>Password</b></td>
			<td><input type='password' name="j_password" size="28"></td>
		</tr>
		<tr>
			<td colspan="2" style="color:red; font-weight:bold;">
					<%=message %>
				<br/>
			</td>
		</tr>
		<tr>
			<td colspan="2">
				<input type="submit" value="Login">
			</td>
		</tr>
		</table>
	</form>
</body>

</html>
